package com.demo.java.spring.validation;

import lombok.Data;

@Data
public class UserInfo {

    @NameValid(message = "name cannot empty")
    private String name;
}
